package com.ly.mapper;


import com.ly.pojo.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BrandMapper {

    public List<Brand> selectAll();

    Brand selectById(int id);


    /*条件查询*/
    List<Brand> selectByCondition(Map map);

    //单条件动态查询
    List<Brand> selectByConditionSingle(Brand brand);

    //添加
    void add(Brand brand);


    //动态修改
    int update(Brand brand);


    //根据id删除
    void deleteById(int id);

    //批量删除
    void deleteByIds(@Param("ids") int[] ids);
}
